package com.yt.chapter1.thread;

public class SecondThreadInput extends Thread {
/** 
* @Description:  
* @Param: [] 
* @return: void 
* @Author: yxl
* @Date: 2019-01-23 15:15
*/ 
    @Override
    public void run() {
        System.out.println("调用SecondThreadInput类的run()重写方法");    //输出字符串
        for(int i=0;i<5;i++)
        {
            System.out.println("SecondThreadInput线程中i="+i);    //输出信息
            try
            {
                Thread.sleep((int) Math.random()*100);    //线程休眠
            }
            catch(Exception e){}
        }
    }
}
